Support IF NOT EXISTS in SQL declarations
authorDaniel Colascione <dancol@dancol.org>
Wed, 21 Nov 2012 21:37:19 +0000 (13:37 -0800)
committerDaniel Colascione <dancol@dancol.org>
Wed, 21 Nov 2012 21:37:19 +0000 (13:37 -0800)
lisp/ChangeLog
lisp/progmodes/sql.el

index 315f15b920b08abcece697e075ebe60a73fe1169..292f3dc6f047d7917479a2225615dcbdc42024e6 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-21  Daniel Colascione  <dancol@dancol.org>
+
+       * progmodes/sql.el (sql-mode-font-lock-object-name): Support IF NOT EXISTS
+       in SQL declarations.
+
 2012-11-15  Daniel Colascione  <dancol@dancol.org>
 
        * term/w32-win.el (w32-handle-dropped-file): Use a "file://"
index 3d5abc4df62a38396a194f5990376be8ff59f352..83fab784f2c45059d9c6e2ab2add6720de1838b1 100644 (file)
@@ -1339,6 +1339,7 @@ Based on `comint-mode-map'.")
                  "\\(?:\\w+\\s-+\\)*"  ;; optional intervening keywords
                  "\\(?:table\\|view\\|\\(?:package\\|type\\)\\(?:\\s-+body\\)?\\|proc\\(?:edure\\)?"
                  "\\|function\\|trigger\\|sequence\\|rule\\|default\\)\\s-+"
+                  "\\(?:if\\s-+not\\s-+exists\\s-+\\)?" ;; IF NOT EXISTS
                  "\\(\\w+\\)")
          1 'font-lock-function-name-face))